import { connect } from 'react-redux';
import * as actions from './actions';
import Counter from './components';

const mapStateToProps = ({ counter }) => ({
  ...counter,
});

// const mapDispatchToProps = dispatch => ({
//   add: () => {
//     dispatch(increment());
//   },
//   deleted: () => {
//     dispatch(decrement());
//   },
//   set: () => {
//     dispatch(reset());
//   },
//   getUserInfo: () => {
//     dispatch(test());
//   },
// });

export default connect(mapStateToProps, actions)(Counter);
